package xyz.chenyongpeng.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品主表
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsGoods对象", description="商品主表")
public class ZsGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品主键")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty(value = "商品类型ID")
    private Integer gtId;

    @ApiModelProperty(value = "绑定的景点ID 即是资源ID")
    private Integer rId;

    @ApiModelProperty(value = "商品名称")
    private String goodsTitle;

    @ApiModelProperty(value = "商品介绍")
    private String goodsInfo;

    @ApiModelProperty(value = "推荐 理由")
    private String recommendReason;

    @ApiModelProperty(value = "商品列表小图")
    private String goodsImg;

    @ApiModelProperty(value = "商品底层大图")
    private String goodsBigImg;

    @ApiModelProperty(value = "当前售价 单位：分")
    private Integer price;

    @ApiModelProperty(value = "原始价格 单位分")
    private Integer oriPrice;

    @ApiModelProperty(value = "优惠金额 单位：分")
    private Integer discountAmount;

    @ApiModelProperty(value = "是否可退款 1表示是 0表示否")
    private Boolean isRefund;

    @ApiModelProperty(value = "退款是否需要审核 1 表示是 0表示不是")
    private Boolean isRefundCheck;

    @ApiModelProperty(value = "退全款订单失效时间前 几  小时")
    private String allRefundHour;

    @ApiModelProperty(value = "退全款订单失效时间前 几  分钟")
    private String allRefundMinute;

    @ApiModelProperty(value = "不可退款订单失效时间前 几  小时")
    private String noAllRefundHour;

    @ApiModelProperty(value = "不可退款 订单失效前多久 分钟")
    private String noAllRefundMinute;

    @ApiModelProperty(value = "0 成人票 1半价优惠票")
    private Boolean ticketCategory;

    @ApiModelProperty(value = "商品状态 1在售 2下架 3删除")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Integer createTime;

    @ApiModelProperty(value = "修改时间")
    private Integer updateTime;

    @ApiModelProperty(value = "展示标签 改为字符串 自定义标签 1 不展示 2 热门 3推荐")
    private String showLabel;

    @ApiModelProperty(value = "是否展示到热门Tab 0 标识否 1 标识是")
    private Integer hotTab;

    @ApiModelProperty(value = "商品展示的标签，99为热门，其余标签同商品分类")
    private Integer showTab;

    @ApiModelProperty(value = "是否预约，1是 0 否，当商品为预约的状态价格为0 ")
    private Integer isAppointment;

    @ApiModelProperty(value = "购票限制 0一个ID只能购一张票 1一个ID可购多张票")
    private Integer ticketLimit;

    @ApiModelProperty(value = "辅助信息 记录开门时间 - 关门时间")
    private String assistMsg;

    @ApiModelProperty(value = "开始时间 辅助信息 用（弃用）")
    private String assistStartTime;

    @ApiModelProperty(value = "辅助信息 结束时间用（弃用）")
    private String assistEndTime;

    @ApiModelProperty(value = "今日票截止时间")
    private String buyCutTime;

    @ApiModelProperty(value = "排序 供商品置顶使用")
    private Integer sort;

    @ApiModelProperty(value = "票务失效天")
    private BigDecimal invalidTime;


}
